package com.cxs.studentManagerSystem.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @Project: studentManagerSystem
 * @Author: cxs2014501@163.com
 * @Create: 2022/9/29 15:09
 * @Description:
 **/
public class WebUtil {

    public static String forwordUrl(String url){
        return "forward:" + url;
    }

    public static String redirectUrl(HttpServletRequest request, String url){
        return "redirect:" + request.getContextPath() + url;
    }
}
